<template>
  <div class="guard-points-panel">
    <div class="panel-title">值守点位置</div>
    <div class="stats-row">
      <div class="stat-card">
        <img class="stat-icon" src="@/assets/image/guardposition/组 103.png" alt="点位" />
        <div class="stat-info">
          <div class="stat-value"><span class="num">209</span><span class="unit">个</span></div>
          <div class="stat-label">值守点位</div>
        </div>
      </div>
      <div class="stat-card">
        <img class="stat-icon" src="@/assets/image/guardposition/组 103(1).png" alt="桥梁" />
        <div class="stat-info">
          <div class="stat-value"><span class="num">8</span><span class="unit">座</span></div>
          <div class="stat-label">值守桥梁</div>
        </div>
      </div>
      <div class="stat-card">
        <img class="stat-icon" src="@/assets/image/guardposition/组 103(2).png" alt="隧道" />
        <div class="stat-info">
          <div class="stat-value"><span class="num">121</span><span class="unit">条</span></div>
          <div class="stat-label">值守隧道</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
// 这里可以后续用props或接口动态传值
</script>

<style lang="scss" scoped>
.guard-points-panel {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: rgba(10, 30, 60, 0.95);
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;

  .panel-title {
    background: url("@/assets/image/TunnelOverviewPanel/组 2.png") no-repeat center/cover;
    width: 452px;
    height: 43px;
    padding: 3px 0 25px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: left;
  }

  .stats-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    background: url("@/assets/image/组 49.png") no-repeat center/cover;
    padding: 18px 0 18px 0;
    min-height: 90px;
  }

  .stat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(20, 40, 80, 0.95);
    border-radius: 4px;
    min-width: 130px;
    width: 140px;
    height: 64px;
    box-sizing: border-box;
    padding: 0 12px;
    position: relative;
    .stat-icon {
      width: 40px;
      height: 40px;
      margin-right: 10px;
      display: block;
    }
    .stat-info {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      .stat-value {
        font-size: 20px;
        font-weight: bold;
        color: #fff;
        .num {
          color: #fff;
          font-size: 22px;
          font-family: SourceHanSansSC-Regular
        }
        .unit {
          color: #F2F6FF;
          font-size: 14px;
          margin-left: 2px;
        }
      }
      .stat-label {
        color: #E7E6E6;
        font-size: 14px;
        font-weight: 400;
        margin-top: 2px;
      }
    }
  }
}
</style> 